package com.huaguoguo.enums;

/**
 * description: 错误代码和提示信息枚举
 * author:huaguoguo
 * Date: 2019/3/13
 * Time: 22:06
 */
public enum ErrorCodeEnum {

    /**登录 - start */
    LOGIN_SUCCESS("000000000","登录成功"),
    LOGIN_NO_USER("000000001","无此用户"),
    LOGIN_PASS_ERROR("000000002","密码错误");
    /**登录 - end */

    private String code;
    private String text;

    private ErrorCodeEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {

        this.text = text;
    }
}
